package com.zdy.worldtion.http;

/**
 * Created by wxl
 */

public class ApiUrl {
    /************************************************
     * 服务器地址 （环境配置：TEST测试模式, PROD正式服）
     ************************************************/
    //TODO 上线务必改成PROD
    public static String MODEL = "TEST";
    public static String API_BASE_URL = "";// 默认服务器
    public static String API_UPLOAD_URL = "";// 默认上传服务器
    public static String WEB_CONST_URL = "";//H5页面
    public static String WEB_ASSISTANT_URL = "";//助手页面
    public static String API_TOKEN_URL = "";// 默认获取token服务器
    public static String TOKEN_PARAMS = "";     //获取token 参数
    public static String API_BASE_NEW_URL = ""; //新系统的接口
    public static String API_BASE_NEW_URL_PATIENT = ""; //患者加好友
    public static String API_BASE_NEW_URL_MESSAGE = "";//消息
    public static String API_BASE_UPLOAD_URL = ""; //图片上传
    public static String API_BASE_BANK_TYPE_URL = ""; //银行列表
    public static String API_BASE_NEEDS_DETAIL_URL = ""; //分享需求
    public static String HEATH_DATE_URL = ""; //健康数据url
    public static String SEND_ORDER_TO_PATIENT_FOR_WECHAT_URL = "";//开方成功通过微信发送给患者Url
    public static String PRESCRIPTION_NOTE_URL = "";//处方笺图片URL前缀

    static {
        if (MODEL.equals("STG")) {
            // 测试服
            API_BASE_URL = "https://micro-api-test.syhdoctor.com/api-doctor-app/";  // 新的测试环境

            WEB_CONST_URL = "https://doctortest.syhdoctor.com/#/";  //H5页面测试
            WEB_ASSISTANT_URL = "https://doctortest.syhdoctor.com/#/Assistant"; //助手测试页面
            API_TOKEN_URL = "https://micro-api-test.syhdoctor.com/api-auth/";

            API_BASE_NEW_URL = "https://micro-api-test.syhdoctor.com/api-doctor-app/";  //新的测试环境

            API_BASE_NEW_URL_PATIENT = "https://micro-api-test.syhdoctor.com/api-doctor-app/";  //新的测试环境

            API_BASE_NEW_URL_MESSAGE = "https://micro-api-test.syhdoctor.com/api-doctor-app/";  //新的测试环境

            API_BASE_UPLOAD_URL = "https://micro-api-test.syhdoctor.com/api-doctor-app/"; //图片上传

            API_BASE_BANK_TYPE_URL = "https://micro-api-test.syhdoctor.com/api-app/"; //查询银行类型

            API_BASE_NEEDS_DETAIL_URL = "https://micro-share-test.syhdoctor.com/"; //分享需求链接


            HEATH_DATE_URL = "https://apps.syhdoctor.com/#/me?token="; //健康数据url

            SEND_ORDER_TO_PATIENT_FOR_WECHAT_URL = "https://substitute-tt.syhdoctor.com/#/?";//开方成功通过微信发送给患者Url

            PRESCRIPTION_NOTE_URL = "https://proxytest.syhdoctor.com/api/localdoctor/upload/getLocalFile/";

            //获取token参数
            TOKEN_PARAMS = "app";
        } else if (MODEL.equals("PROD")) {// 正式服
            API_BASE_URL = "https://micro-api.syhdoctor.com/api-doctor-app/";  // 线上环境
            WEB_CONST_URL = "https://andiropro.syhdoctor.com/#/"; //H5页面线上
            WEB_ASSISTANT_URL = "https://andiropro.syhdoctor.com/#/Assistant"; //助手线上页面
            API_TOKEN_URL = "https://micro-api.syhdoctor.com/api-auth/"; //获取token

            API_BASE_NEW_URL = "https://micro-api.syhdoctor.com/api-doctor-app/"; //新系统接口线上接口

            API_BASE_NEW_URL_PATIENT = "https://micro-api.syhdoctor.com/api-doctor-app/";  //患者列表

            API_BASE_NEW_URL_MESSAGE = "https://micro-api.syhdoctor.com/api-doctor-app/";  //消息列表

            API_BASE_UPLOAD_URL = "https://micro-api-test.syhdoctor.com/api-doctor-app/"; //图片上传

            API_BASE_BANK_TYPE_URL = "https://micro-api.syhdoctor.com/api-app/"; //查询银行类型

            API_BASE_NEEDS_DETAIL_URL = "https://micro-share.syhdoctor.com/"; //分享需求链接

            HEATH_DATE_URL = "https://apps-pro.syhdoctor.com/#/me?token="; //健康数据url

            SEND_ORDER_TO_PATIENT_FOR_WECHAT_URL = "https://substitute.syhdoctor.com/#/?";//开方成功通过微信发送给患者Url

            PRESCRIPTION_NOTE_URL = "https://proxyprod.syhdoctor.com/api/localdoctor/upload/getLocalFile/";

            //获取token参数
            TOKEN_PARAMS = "app";
        } else if (MODEL.equals("UAT")) {
            //预上线环境
        }
    }

    /**
     * 登录接口
     */
    public static final String GET_LOGIN = "app/new/doctor/doctorLogin/v3";
}
